import request from '@/utils/request'

// 获取部门列表
export const getDepData = () => request.get('/company/department')

// 获取负责人列表
export const getManagerList = () => request.get('/sys/user/simple')

// 添加部门
export const addDepartment = data => request.post('/company/department', data)

// 获取部门详情(编辑)
export const getDepDetail = id => request.get(`/company/department/${id}`)

// 更新部门
export const updateDepartment = data => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const delDepartment = id => request.delete(`/company/department/${id}`)
